package com.rede.didiok.admin.restapi;

import javax.annotation.Resource;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.rede.didiok.admin.service.SystemConfigService;
import com.rede.didiok.common.utils.ResultUtil;

/**
 * 搜索 RestApi
 *
 * @author Rede
 * @date 2023年7月22日23:28:29
 */
@RestController
@RequestMapping("/search/admin")
@Api(value = "SQL搜索相关接口", tags = {"SQL搜索相关接口"})
@Slf4j
public class SearchRestApi {
    @Resource
    private SystemConfigService systemConfigService;

    @ApiOperation(value = "获取搜索模式", notes = "获取搜索模式", response = String.class)
    @GetMapping(value = "/getSearchModel")
    public String getSearchModel() {
        return ResultUtil.successWithData(systemConfigService.getSearchModel());
    }

}
